package com.fh.common.web;

import com.fh.modules.ucas.entity.SysUser;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * @author Qiu,Junda 
 * @date 2019年4月8日
 * @description
 */
public class AbstractController {

protected Logger log = LoggerFactory.getLogger(getClass());
	
	protected SysUser getUser() {
	    //TODO 待接入
	    SysUser sysUser=new SysUser();
	    sysUser.setId("123");
	    sysUser.setUsername("admin");
		return sysUser;
	}

	/**
	 * 获取用户表主键
	 */
	protected String getUserId() {
		return getUser().getId();
	}

	/**
	 * 获取用户名
	 */
	protected String getUserAccount() {
		return getUser().getUsername();
	}
}
